create or replace
TRIGGER PIECE_MELEE_WEAPON_TRIGGER
BEFORE INSERT ON PIECE_MELEE_WEAPONS
FOR EACH ROW WHEN (NEW.PIECE_MELEE_WEAPONS_ID IS NULL)
BEGIN 
	SELECT PIECE_MELEE_WEAPONS_SEQ.NEXTVAL 
	INTO :NEW.PIECE_MELEE_WEAPONS_ID 
	FROM DUAL;
END;